import 'package:part_time_job_pro/common/models/login_params.dart';
import 'package:json_annotation/json_annotation.dart';

part 'login_user.g.dart';

//用户信息
@JsonSerializable()
class LoginUser {
  //用户ID
  int? id;

  //名称
  String? name;

  //登录账号
  String? loginAccount;

  //登录密码
  String? loginPassword;

  //简介
  String? summary;

  //logo
  String? logo;

  //城市
  String? cityName;

  //省
  String? provinceName;

  //区
  String? areaName;

  //详细地址
  String? address;

  //手机号
  String? mobile;

  //微信号
  String? wechat;

  //电子邮件
  String? email;

  //是否认证
  String? certified;

  //是否vip账号
  String? vipFlag;

  //密码
  String? verfiyCode;

  //认证方式  0  未认证  1 企业认证  2 个人团队
  String? certifyType;

  //身份证号
  String? cardId;

  //身份证姓名
  String? cardName;

  //身份证照片正面
  String? cardPicFirst;

  //身份证照片反面
  String? cardPicSecond;

  //组织机构名称
  String? orgName;

  //社会信用代码
  String? orgCode;

  //营业执照照片
  String? orgPic;

  //人脸识别 0 否 1 是
  String? faceVerfiy;

  //企业信用分
  int? score;

  //公司所属行业
  String? industry;

  // 状态 0 正常 1 停用
  String? status;

  //token信息
  LoginParams? params;

  LoginUser(
      {this.id,
      this.name,
      this.loginAccount,
      this.loginPassword,
      this.summary,
      this.logo,
      this.cityName,
      this.provinceName,
      this.areaName,
      this.address,
      this.mobile,
      this.wechat,
      this.email,
      this.certified,
      this.vipFlag,
      this.verfiyCode,
      this.certifyType,
      this.cardId,
      this.cardName,
      this.cardPicFirst,
      this.cardPicSecond,
      this.orgName,
      this.orgCode,
      this.orgPic,
      this.faceVerfiy,
      this.score,
      this.industry,
      this.params,
      this.status});

  factory LoginUser.fromJson(Map<String, dynamic> json) => _$LoginUserFromJson(json);

  Map<String, dynamic> toJson() => _$LoginUserToJson(this);
}
